<template>
  <div>
    <perNav center="我的跟帖"></perNav>
    <comment v-for="(item,index) of comment_list" :key="index" :comment_item="item"></comment>
  </div>
</template>

<script>
import perNav from "../../components/perNav";
import comment from "../../components/comment/comment";

export default {
  components: {
    perNav,
    comment
  },
  data() {
    return {
      comment_list: []
    };
  },
  methods: {
    get_comment() {
      this.$axios({
        method: "get",
        url: "/post_comment/" + localStorage.getItem("user_id")
      }).then(res => {
        const { data } = res.data;
        this.comment_list = data;
      });
    }
  },
  mounted() {
    this.get_comment()
  },
};
</script>

<style>
</style>